package com.itdfq.loginuser.service;

import com.itdfq.loginuser.dao.GeoMapper;
import com.itdfq.loginuser.domain.Geo;
import com.itdfq.loginuser.domain.GeoExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: GodChin
 * @Date: 2021/8/23 18:37
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Description:
 */
@Service
public class GeoService {
    @Autowired
    private GeoMapper geoMapper;

    public List<Geo> likeGeo(String code){

       return   geoMapper.likeCode(code);
    }

    public List<Geo> findAll(){
        return geoMapper.selectByExample(null);
    }
}
